package cn.jly.servlet3.controller;

import cn.jly.servlet3.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.logging.Logger;

/**
 * @author lanyangji
 * @description userController
 * @date 2020/11/14 下午 7:08
 */
@Controller
public class UserController {

    public static final Logger LOGGER = Logger.getLogger(UserController.class.getName());

    @Autowired
    UserService userService;

    @ResponseBody
    @GetMapping("/user")
    public String greeting(String name) {

        return userService.greeting(name);
    }
}
